def maxWord(s , n):
    max=0
    i=0
    Word=""
    while i<n:
        n1=s.find(' ')
        if n1==-1:
            if len(s)>max:
                Word=s
            break
        if(n1>max):
            Word=s[:n1]
            max=n1
        s=s[n1+1:]
        i=n1
        
    return Word


s=input()
i=0
max=0
n=s.__len__()
print(maxWord(s,n))